﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ppDocCTPSHist.aspx.cs" Inherits="Protegidos_Pessoas_DadosPessoa__popup_ppDocCTPSHist" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register TagPrefix="uc1" TagName="HeadTag"  Src="~/_includes/HeadTag.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!-- Includes -->
    <uc1:HeadTag ID="HeadTag1" runat="server" />
    <title>Histórico de CTPS</title>
</head>
<body>
    <form id="form1" runat="server">
    <script type="text/javascript">
            function CloseAndRebind(args)
            {
                GetRadWindow().Close();
                GetRadWindow().BrowserWindow.refreshGrid(args);
            }
    		
            function GetRadWindow()
            {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
    				
                return oWindow;
            }

            function CancelEdit()
            {
                GetRadWindow().Close();
            }
        </script>
        
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        
        <table width="99%" class="textoCZ_12B" align="right">
            <tr id="tr1" runat="server">
                <td>
                    <div class="subTitulo_pagina">Histórico CTPS</div>
                    <div class="espaco"></div>
                </td>
            </tr>
            <tr id="tr2" runat="server">
                <td>
                
                    <!-- INICIO - Resultado -->
                        <telerik:RadGrid ID="RadGrid1" Width="100%" Skin="Telerik" 
                            runat="server" AllowPaging="True" AllowSorting="True"
                            GridLines="None" AutoGenerateColumns="false" PageSize="20" OnNeedDataSource="RadGrid1_NeedDataSource" >
                            <MasterTableView GridLines="None" DataKeyNames="IdCTPS">
                                <Columns>
                                    <telerik:GridBoundColumn UniqueName="Numero" HeaderText="Numero" DataField="Numero" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="Serie" HeaderText="Serie" DataField="Serie" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="Emissor" HeaderText="Emissor" DataField="Emissor" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="DataExpedicao" HeaderText="DataExpedicao" DataField="DataExpedicao" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridHyperLinkColumn DataTextFormatString="Vizualizar"
                                        DataNavigateUrlFields="Path" UniqueName="Path" DataNavigateUrlFormatString="http://localhost/gentev1/arq/{0}" Target="_blank"
                                        HeaderText="Imagem" DataTextField="Path">
                                    </telerik:GridHyperLinkColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>     
                        <!-- FIM - Resultado -->
                
                </td>
            </tr>
            <tr>
                <td align="right">
                <br />
                <asp:Button ID="btnFechar" runat="server" Text="Fechar" Width="110px" onclick="btnFechar_Click" />&nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </form>
</body>
</html>